home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1995 October
/
EnigmA AMIGA RUN 01 (1995)(G.R. Edizioni)(IT)[!][issue 1995-10][Aminet 7].iso
/
Aminet
/
game
/
board
/
Chaos_src.lha
/
chaos
/
src
/
DWZtabs.c
< prev
next >
Wrap
Text File
|
1995-05-09
|
19KB
|
1,779 lines
/* Chaos: The Chess HAppening Organisation System V5.3
Copyright (C) 1993 Jochen Wiedmann
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
$RCSfile: DWZtabs.c,v $
$Revision: 3.1 $
$Date: 1994/03/23 15:45:41 $
This file holds the tables that are needed to compute the DWZ-ratings.
Computer: Amiga 1200 Compiler: Aztec-C V5.0a
Author: Jochen Wiedmann
Am Eisteich 9
72555 Metzingen
Tel. 07123 / 14881
Internet: jochen.wiedmann@zdv.uni-tuebingen.de
*/
const int PercentToDWZTab[] =
{ 874, /* 99.9 % */
814, /* 99.8 % */
777, /* 99.7 % */
750,
728,
710,
695,
681,
669,
657,
647,
638,
629,
621,
613,
606,
599,
593,
586,
580,
575,
569,
564,
559,
554,
549,
544,
540,
536,
531,
527,
523,
519,
516,
512,
508,
505,
501,
498,
495,
491,
488,
485,
482,
479,
476,
473,
470,
467,
465,
462,
459,
457,
454,
452,
449,
447,
444,
442,
439,
437,
435,
432,
430,
428,
426,
423,
421,
419,
417,
415,
413,
411,
409,
407,
405,
403,
401,
399,
397,
395,
393,
391,
389,
388,
386,
384,
382,
380,
379,
377,
375,
374,
372,
370,
369,
367,
365,
364,
362,
360,
359,
357,
356,
354,
353,
351,
349,
348,
346,
345,
343,
342,
340,
339,
338,
336,
335,
333,
332,
330,
329,
328,
326,
325,
323,
322,
321,
319,
318,
317,
315,
314,
313,
311,
310,
309,
308,
306,
305,
304,
303,
301,
300,
299,
298,
296,
295,
294,
293,
291,
290,
289,
288,
287,
285,
284,
283,
282,
281,
280,
278,
277,
276,
275,
274,
273,
272,
270,
269,
268,
267,
266,
265,
264,
263,
262,
261,
259,
258,
257,
256,
255,
254,
253,
252,
251,
250,
249,
248,
247,
246,
245,
244,
243,
242,
241,
240,
239,
238,
237,
236,
235,
234,
233,
232,
231,
230,
229,
228,
227,
226,
225,
224,
223,
222,
221,
220,
219,
218,
217,
216,
215,
214,
213,
212,
211,
210,
209,
208,
208,
207,
206,
205,
204,
203,
202,
201,
200,
199,
198,
197,
197,
196,
195,
194,
193,
192,
191,
190,
189,
188,
188,
187,
186,
185,
184,
183,
182,
181,
181,
180,
179,
178,
177,
176,
175,
175,
174,
173,
172,
171,
170,
169,
169,
168,
167,
166,
165,
164,
164,
163,
162,
161,
160,
159,
159,
158,
157,
156,
155,
154,
154,
153,
152,
151,
150,
149,
149,
148,
147,
146,
145,
145,
144,
143,
142,
141,
141,
140,
139,
138,
137,
137,
136,
135,
134,
133,
133,
132,
131,
130,
129,
129,
128,
127,
126,
125,
125,
124,
123,
122,
122,
121,
120,
119,
118,
118,
117,
116,
115,
115,
114,
113,
112,
112,
111,
110,
109,
108,
108,
107,
106,
105,
105,
104,
103,
102,
102,
101,
100,
99,
99,
98,
97,
96,
96,
95,
94,
93,
93,
92,
91,
90,
90,
89,
88,
87,
87,
86,
85,
84,
84,
83,
82,
81,
81,
80,
79,
79,
78,
77,
76,
76,
75,
74,
73,
73,
72,
71,
70,
70,
69,
68,
68,
67,
66,
65,
65,
64,
63,
62,
62,
61,
60,
60,
59,
58,
57,
57,
56,
55,
54,
54,
53,
52,
52,
51,
50,
49,
49,
48,
47,
47,
46,
45,
44,
44,
43,
42,
41,
41,
40,
39,
39,
38,
37,
36,
36,
35,
34,
34,
33,
32,
31,
31,
30,
29,
29,
28,
27,
26,
26,
25,
24,
24,
23,
22,
22,
21,
20,
19,
19,
18,
17,
17,
16,
15,
14,
14,
13,
12,
12,
11,
10,
9,
9,
8,
7,
7,
6,
5,
4,
4,
3,
2,
2,
1,
0,
0,
-1,
-2,
-3,
-3,
-4,
-5,
-5,
-6,
-7,
-8,
-8,
-9,
-10,
-10,
-11,
-12,
-13,
-13,
-14,
-15,
-15,
-16,
-17,
-18,
-18,
-19,
-20,
-20,
-21,
-22,
-23,
-23,
-24,
-25,
-25,
-26,
-27,
-27,
-28,
-29,
-30,
-30,
-31,
-32,
-32,
-33,
-34,
-35,
-35,
-36,
-37,
-37,
-38,
-39,
-40,
-40,
-41,
-42,
-42,
-43,
-44,
-45,
-45,
-46,
-47,
-48,
-48,
-49,
-50,
-50,
-51,
-52,
-53,
-53,
-54,
-55,
-55,
-56,
-57,
-58,
-58,
-59,
-60,
-61,
-61,
-62,
-63,
-63,
-64,
-65,
-66,
-66,
-67,
-68,
-69,
-69,
-70,
-71,
-71,
-72,
-73,
-74,
-74,
-75,
-76,
-77,
-77,
-78,
-79,
-80,
-80,
-81,
-82,
-82,
-83,
-84,
-85,
-85,
-86,
-87,
-88,
-88,
-89,
-90,
-91,
-91,
-92,
-93,
-94,
-94,
-95,
-96,
-97,
-97,
-98,
-99,
-100,
-100,
-101,
-102,
-103,
-103,
-104,
-105,
-106,
-106,
-107,
-108,
-109,
-109,
-110,
-111,
-112,
-113,
-113,
-114,
-115,
-116,
-116,
-117,
-118,
-119,
-119,
-120,
-121,
-122,
-123,
-123,
-124,
-125,
-126,
-126,
-127,
-128,
-129,
-130,
-130,
-131,
-132,
-133,
-134,
-134,
-135,
-136,
-137,
-138,
-138,
-139,
-140,
-141,
-142,
-142,
-143,
-144,
-145,
-146,
-146,
-147,
-148,
-149,
-150,
-150,
-151,
-152,
-153,
-154,
-155,
-155,
-156,
-157,
-158,
-159,
-160,
-160,
-161,
-162,
-163,
-164,
-165,
-165,
-166,
-167,
-168,
-169,
-170,
-170,
-171,
-172,
-173,
-174,
-175,
-176,
-176,
-177,
-178,
-179,
-180,
-181,
-182,
-182,
-183,
-184,
-185,
-186,
-187,
-188,
-189,
-189,
-190,
-191,
-192,
-193,
-194,
-195,
-196,
-197,
-198,
-198,
-199,
-200,
-201,
-202,
-203,
-204,
-205,
-206,
-207,
-208,
-209,
-209,
-210,
-211,
-212,
-213,
-214,
-215,
-216,
-217,
-218,
-219,
-220,
-221,
-222,
-223,
-224,
-225,
-226,
-227,
-228,
-229,
-230,
-231,
-232,
-233,
-234,
-235,
-236,
-237,
-238,
-239,
-240,
-241,
-242,
-243,
-244,
-245,
-246,
-247,
-248,
-249,
-250,
-251,
-252,
-253,
-254,
-255,
-256,
-257,
-258,
-259,
-260,
-262,
-263,
-264,
-265,
-266,
-267,
-268,
-269,
-270,
-271,
-273,
-274,
-275,
-276,
-277,
-278,
-279,
-281,
-282,
-283,
-284,
-285,
-286,
-288,
-289,
-290,
-291,
-292,
-294,
-295,
-296,
-297,
-299,
-300,
-301,
-302,
-304,
-305,
-306,
-307,
-309,
-310,
-311,
-312,
-314,
-315,
-316,
-318,
-319,
-320,
-322,
-323,
-324,
-326,
-327,
-329,
-330,
-331,
-333,
-334,
-336,
-337,
-339,
-340,
-341,
-343,
-344,
-346,
-347,
-349,
-350,
-352,
-354,
-355,
-357,
-358,
-360,
-361,
-363,
-365,
-366,
-368,
-370,
-371,
-373,
-375,
-376,
-378,
-380,
-381,
-383,
-385,
-387,
-389,
-390,
-392,
-394,
-396,
-398,
-400,
-402,
-404,
-406,
-408,
-410,
-412,
-414,
-416,
-418,
-420,
-422,
-424,
-427,
-429,
-431,
-433,
-436,
-438,
-440,
-443,
-445,
-448,
-450,
-453,
-455,
-458,
-460,
-463,
-466,
-468,
-471,
-474,
-477,
-480,
-483,
-486,
-489,
-492,
-496,
-499,
-502,
-506,
-509,
-513,
-517,
-520,
-524,
-528,
-532,
-537,
-541,
-545,
-550,
-555,
-560,
-565,
-570,
-576,
-581,
-587,
-594,
-600,
-607,
-614,
-622,
-630,
-639,
-648,
-658,
-670,
-682,
-696,
-711,
-729,
-751,
-778, /* 0.3 % */
-815, /* 0.2 % */
-875 /* 0.1 % */
};
const double DWZtoPercentTab[] =
{ 0.500, /* 0 Punkte */
0.501, /* 1 Punkt */
0.503, /* 2 Punkte */
0.504,
0.506,
0.507,
0.508,
0.510,
0.511,
0.513,
0.514,
0.516,
0.517,
0.518,
0.520,
0.521,
0.523,
0.524,
0.525,
0.527,
0.528,
0.530,
0.531,
0.532,
0.534,
0.535,
0.537,
0.538,
0.539,
0.541,
0.542,
0.544,
0.545,
0.546,
0.548,
0.549,
0.551,
0.552,
0.553,
0.555,
0.556,
0.558,
0.559,
0.560,
0.562,
0.563,
0.565,
0.566,
0.567,
0.569,
0.570,
0.572,
0.573,
0.574,
0.576,
0.577,
0.578,
0.580,
0.581,
0.583,
0.584,
0.585,
0.587,
0.588,
0.590,
0.591,
0.592,
0.594,
0.595,
0.596,
0.598,
0.599,
0.600,
0.602,
0.603,
0.605,
0.606,
0.607,
0.609,
0.610,
0.611,
0.613,
0.614,
0.615,
0.617,
0.618,
0.619,
0.621,
0.622,
0.623,
0.625,
0.626,
0.628,
0.629,
0.630,
0.632,
0.633,
0.634,
0.636,
0.637,
0.638,
0.639,
0.641,
0.642,
0.643,
0.645,
0.646,
0.647,
0.649,
0.650,
0.651,
0.653,
0.654,
0.655,
0.657,
0.658,
0.659,
0.660,
0.662,
0.663,
0.664,
0.666,
0.667,
0.668,
0.669,
0.671,
0.672,
0.673,
0.675,
0.676,
0.677,
0.678,
0.680,
0.681,
0.682,
0.683,
0.685,
0.686,
0.687,
0.688,
0.690,
0.691,
0.692,
0.693,
0.695,
0.696,
0.697,
0.698,
0.700,
0.701,
0.702,
0.703,
0.705,
0.706,
0.707,
0.708,
0.709,
0.711,
0.712,
0.713,
0.714,
0.715,
0.717,
0.718,
0.719,
0.720,
0.721,
0.723,
0.724,
0.725,
0.726,
0.727,
0.728,
0.730,
0.731,
0.732,
0.733,
0.734,
0.735,
0.737,
0.738,
0.739,
0.740,
0.741,
0.742,
0.743,
0.745,
0.746,
0.747,
0.748,
0.749,
0.750,
0.751,
0.752,
0.754,
0.755,
0.756,
0.757,
0.758,
0.759,
0.760,
0.761,
0.762,
0.764,
0.765,
0.766,
0.767,
0.768,
0.769,
0.770,
0.771,
0.772,
0.773,
0.774,
0.775,
0.776,
0.777,
0.779,
0.780,
0.781,
0.782,
0.783,
0.784,
0.785,
0.786,
0.787,
0.788,
0.789,
0.790,
0.791,
0.792,
0.793,
0.794,
0.795,
0.796,
0.797,
0.798,
0.799,
0.800,
0.801,
0.802,
0.803,
0.804,
0.805,
0.806,
0.807,
0.808,
0.809,
0.810,
0.811,
0.812,
0.813,
0.814,
0.814,
0.815,
0.816,
0.817,
0.818,
0.819,
0.820,
0.821,
0.822,
0.823,
0.824,
0.825,
0.826,
0.827,
0.827,
0.828,
0.829,
0.830,
0.831,
0.832,
0.833,
0.834,
0.835,
0.835,
0.836,
0.837,
0.838,
0.839,
0.840,
0.841,
0.841,
0.842,
0.843,
0.844,
0.845,
0.846,
0.847,
0.847,
0.848,
0.849,
0.850,
0.851,
0.852,
0.852,
0.853,
0.854,
0.855,
0.856,
0.856,
0.857,
0.858,
0.859,
0.860,
0.860,
0.861,
0.862,
0.863,
0.863,
0.864,
0.865,
0.866,
0.867,
0.867,
0.868,
0.869,
0.870,
0.870,
0.871,
0.872,
0.873,
0.873,
0.874,
0.875,
0.875,
0.876,
0.877,
0.878,
0.878,
0.879,
0.880,
0.880,
0.881,
0.882,
0.883,
0.883,
0.884,
0.885,
0.885,
0.886,
0.887,
0.887,
0.888,
0.889,
0.889,
0.890,
0.891,
0.891,
0.892,
0.893,
0.893,
0.894,
0.895,
0.895,
0.896,
0.897,
0.897,
0.898,
0.898,
0.899,
0.900,
0.900,
0.901,
0.902,
0.902,
0.903,
0.903,
0.904,
0.905,
0.905,
0.906,
0.906,
0.907,
0.908,
0.908,
0.909,
0.909,
0.910,
0.910,
0.911,
0.912,
0.912,
0.913,
0.913,
0.914,
0.914,
0.915,
0.915,
0.916,
0.917,
0.917,
0.918,
0.918,
0.919,
0.919,
0.920,
0.920,
0.921,
0.921,
0.922,
0.922,
0.923,
0.923,
0.924,
0.924,
0.925,
0.925,
0.926,
0.926,
0.927,
0.927,
0.928,
0.928,
0.929,
0.929,
0.930,
0.930,
0.931,
0.931,
0.932,
0.932,
0.933,
0.933,
0.934,
0.934,
0.934,
0.935,
0.935,
0.936,
0.936,
0.937,
0.937,
0.938,
0.938,
0.938,
0.939,
0.939,
0.940,
0.940,
0.941,
0.941,
0.941,
0.942,
0.942,
0.943,
0.943,
0.943,
0.944,
0.944,
0.945,
0.945,
0.945,
0.946,
0.946,
0.947,
0.947,
0.947,
0.948,
0.948,
0.948,
0.949,
0.949,
0.950,
0.950,
0.950,
0.951,
0.951,
0.951,
0.952,
0.952,
0.952,
0.953,
0.953,
0.953,
0.954,
0.954,
0.954,
0.955,
0.955,
0.955,
0.956,
0.956,
0.956,
0.957,
0.957,
0.957,
0.958,
0.958,
0.958,
0.959,
0.959,
0.959,
0.960,
0.960,
0.960,
0.961,
0.961,
0.961,
0.961,
0.962,
0.962,
0.962,
0.963,
0.963,
0.963,
0.963,
0.964,
0.964,
0.964,
0.965,
0.965,
0.965,
0.965,
0.966,
0.966,
0.966,
0.966,
0.967,
0.967,
0.967,
0.968,
0.968,
0.968,
0.968,
0.969,
0.969,
0.969,
0.969,
0.970,
0.970,
0.970,
0.970,
0.970,
0.971,
0.971,
0.971,
0.971,
0.972,
0.972,
0.972,
0.972,
0.973,
0.973,
0.973,
0.973,
0.973,
0.974,
0.974,
0.974,
0.974,
0.975,
0.975,
0.975,
0.975,
0.975,
0.976,
0.976,
0.976,
0.976,
0.976,
0.977,
0.977,
0.977,
0.977,
0.977,
0.978,
0.978,
0.978,
0.978,
0.978,
0.978,
0.979,
0.979,
0.979,
0.979,
0.979,
0.980,
0.980,
0.980,
0.980,
0.980,
0.980,
0.981,
0.981,
0.981,
0.981,
0.981,
0.981,
0.982,
0.982,
0.982,
0.982,
0.982,
0.982,
0.982,
0.983,
0.983,
0.983,
0.983,
0.983,
0.983,
0.983,
0.984,
0.984,
0.984,
0.984,
0.984,
0.984,
0.984,
0.985,
0.985,
0.985,
0.985,
0.985,
0.985,
0.985,
0.986,
0.986,
0.986,
0.986,
0.986,
0.986,
0.986,
0.986,
0.987,
0.987,
0.987,
0.987,
0.987,
0.987,
0.987,
0.987,
0.988,
0.988,
0.988,
0.988,
0.988,
0.988,
0.988,
0.988,
0.988,
0.988,
0.989,
0.989,
0.989,
0.989,
0.989,
0.989,
0.989,
0.989,
0.989,
0.990,
0.990,
0.990,
0.990,
0.990,
0.990,
0.990,
0.990,
0.990,
0.990,
0.990,
0.991,
0.991,
0.991,
0.991,
0.991,
0.991,
0.991,
0.991,
0.991,
0.991,
0.991,
0.991,
0.992,
0.992,
0.992,
0.992,
0.992,
0.992,
0.992,
0.992,
0.992,
0.992,
0.992,
0.992,
0.993,
0.993,
0.993,
0.993,
0.993,
0.993,
0.993,
0.993,
0.993,
0.993,
0.993,
0.993,
0.993,
0.993,
0.993,
0.994,
0.994,
0.994,
0.994,
0.994,
0.994,
0.994,
0.994,
0.994,
0.994,
0.994,
0.994,
0.994,
0.994,
0.994,
0.994,
0.994,
0.995,
0.995,
0.995,
0.995,
0.995,
0.995,
0.995,
0.995,
0.995,
0.995,
0.995,
0.995,
0.995,
0.995, /* 733 Punkte */
0.995, /* 734 Punkte */
0.995 /* 735 Punkte */
};